package com.frp.protocol;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 心跳消息
 */
public class HeartbeatMessage extends Message {
    @JsonProperty("timestamp")
    private long timestamp;
    
    public HeartbeatMessage() {
        super(MessageType.Heartbeat);
    }
    
    public HeartbeatMessage(long timestamp) {
        super(MessageType.Heartbeat);
        this.timestamp = timestamp;
    }
    
    public long getTimestamp() { return timestamp; }
    public void setTimestamp(long timestamp) { this.timestamp = timestamp; }
}